package gift.justflower.ecp.bean;

import org.nutz.dao.entity.annotation.EL;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Prev;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.dao.entity.annotation.One;

import java.util.Date;

/**
 * 销售单
 * author：AB
 * time：2018年7月17日 23:02:30
 */
@Table("t_sell")
public class Sell{
	@Name
    @Prev(els = @EL("uuid()"))
    private String id;
    @One(field="goodsId")
    private Goods goods;
    private String goodsId;
    private String userId;
    private Long count;
    private Date createTime;

    public String getId(){
    	return id;
    }

    public void setId(String id){
    	this.id = id;
    }

    public Goods getGoods(){
    	return goods;
    }

    public void setGoods(Goods goods){
    	this.goods = goods;
    }

    public String getGoodsId(){
    	return goodsId;
    }

    public void setGoodsId(String goodsId){
    	this.goodsId = goodsId;
    }

	public String getUserId(){
    	return userId;
    }

    public void setUserId(String userId){
    	this.userId = userId;
    }

    public Long getCount(){
    	return count;
    }

    public void setCount(Long count){
    	this.count = count;
    }

    public Date getCreateTime(){
    	return createTime;
    }

    public void setCreateTime(Date createTime){
    	this.createTime = createTime;
    }
}